package com.shuma.shopmanage.model.shop.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 商品列表
 *
 * @author wp
 * @data 2023/10/21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品列表视图")
public class GoodsVo implements Serializable {
    /**
     * 商品ID
     */
    @ApiModelProperty("商品ID")
    private Long id;

    private Long goodsDraftId;

    /**
     * 商品名称
     */
    @ApiModelProperty("商品名称")
    private String name;

    private String imgUrl;

    private String description;

    private String type;

    private String detail;

    private Long catId;

    private String providerName;

    private String phone;

    private String service;

    private Integer buyType;

    private Integer pointPrice;

    private BigDecimal cashPrice;

    private Integer buyLimit;

    private Integer store;

    private Long createUserId;

    private Long manageUserId;

    /**
     * 管理人名称
     */
    @ApiModelProperty("管理人名称")
    private String manageUserName;

    /**
     * 是否审核通过
     */
    @ApiModelProperty("是否审核通过")
    private Boolean isApproval;

    /**
     * 上线时间
     */
    @ApiModelProperty("上线时间")
    private Date onTime;

    /**
     * 下线时间
     */
    @ApiModelProperty("下线时间")
    private Date downTime;

    /**
     * 商品状态
     */
    @ApiModelProperty("商品状态")
    private Integer status;

    private Integer approvalStatus;

    private Boolean isDelete;


    //非数据库注解
    private List<String> noDeliverPostalCodes;

    private List<String> storagePostalCodes;

    private static final long serialVersionUID = 1L;
}
